package com.jk.dao;

import com.jk.entity.GzrzEntity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GzrzDao {

    @Insert("insert into t_gzrz values(#{id},#{fcontent},#{fplan},#{uid})")
    void addGzrz(GzrzEntity gzrzEntity);

    @Select("select u.name,u.uimg,g.fcontent,g.fplan from t_user u , t_gzrz  g where u.id = g.uid")
    List<GzrzEntity> getGzrz();
}
